﻿using CheccCoverplateCulvertAssemble.Conmmon;
using CheccCoverplateCulvertAssemble.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CheccCoverplateCulvertAssemble.Operation
{
    public class UnitaryBasicFactory : FactoryCreator
    {
        public RebarEntity rebarEntity { get; private set; }
        public UnitaryBasicFactory(RebarEntity rebarEntity)
        {
            this.rebarEntity = rebarEntity;
        }
        public override ConstructingEntity ConstructingEntityCreator(BasicConstructor basicConstructor, CulvertType culvertType, ConstructionMethod constructionMethod, CulvertComponentType culvertComponentType)
        {
            return new UnitaryBasic ( basicConstructor, this.rebarEntity, culvertType, constructionMethod,culvertComponentType);
        }
    }
}
